const router = require('express').Router()
const {
   allShop,
   addShop,
   deleteShop
} =require('../controller/shopController')
const {
   register,
   login,
   isLogin,
   logout
}=require('../controller/userController')
const {
   upload
}=require('../controller/uploadController')
//写路由来处理来自前端的请求
router.get('/v1/shop/select',allShop)
router.get('/v1/shop/add',addShop)
router.get('/v1/shop/delete',deleteShop)
router.post('/v1/user/register',register)
router.post('/v1/user/login',login)
router.get('/v1/user/is-login',isLogin)
router.get('/v1/user/logout',logout)
router.post('/v1/upload',upload)




module.exports = router